<h1>术间</h1>

<% form_for(@surger_room) do |f| %>
  <%= f.error_messages %>
  <p>
  <%=f.label "术间归属室" %><br />
  <%=f.select :surger_address_id ,SurgerAddress.find(:all).collect{|t|[t.surger_address_name,t.id]},:include_blank => false %> 
  </P>

  <p>
    <%= f.label "手术间编码" %><br />
    <%= f.text_field :surger_room_code %>
  </p>
  <p>
    <%= f.label "手术间名称" %><br />
    <%= f.text_field :surger_room_name %>
  </p>
   <p>
    <%= f.label :surger_room_value %><br />
    <%= f.text_field :surger_room_value %>
  </p>
  <p>
    <%= f.submit '确定新增' %>
  </p>
<% end %>

<%= link_to '返回列表', surger_rooms_path %>
